Derivation of the formula of a pentagon